<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>


    <script>
        var week = prompt('今天周几(周一 ———— 周日)：');
        if (week == '周六' || week == '周日') {

            var temperature = prompt('今天温度多少：');
            if (temperature > 30) {
                alert('去游泳');
            } else {
                alert('去爬山');
            }
        } else {
            
             var temperature = prompt('今天天气怎么样(好——不好)：');
            if (temperature =='好') {
                alert('去客户单位谈业务');
            } else {
                alert('在公司上网查资料');
            }
        }
    </script>
</body>

</html>